{template Public:Page:header}
 <script src="/assets/js/iColorPicker.js"></script>

<div class="container">
  <div class="row">
  
    {template Member:Index:sidebar}
    
    <div class="col-lg-10 well-col-pl-30">
      <div class="row">
            <div class="well">

                <h3>店铺幻灯片</h3>
 

            <br />
        <div class="row"> 
        <div class="col-lg-10 col-lg-offset-1">

            {if $slidearray}
           	   <h5>已上传幻灯片</h5>
               <div class="row"> 
              {foreach $slidearray $key=>$slide}
                <div class="col-lg-4"><img src="/{echo $slide['thumbcut']}"/></div>
              {/foreach}  
              </div>
            {/if}

        		<br>
               <div class="row">
        
               <h4>上传幻灯片图片 (最多3张,每张大小不超过{echo $uploadsize}M)</h4>
               <script>var upload_filenumlimit=3; </script>
               <div class="row">
     			{template Public:Page:webuploader}
         		</div>
                    <div class="form-group has-feedback">
                    <a href="javascript:void(0);" id="UploadFile">添加附件</a>
                    </div>
                    
                </div>
     			 <br>
       

      	  
             <br>
             </div>
             

             <div class="row">
               <div class="col-lg-10 col-lg-offset-1">
               	<button class="btn btn-success" type="submit" id="SubmitSlide">提交上传</button>
               </div>
            </div>

          <input type="hidden" name="datatype" value="json"/>
          <input type="hidden" name="Submit" value="true"/>
             
				</div>
               
            </div>
    </div>
  </div>
</div>
</div>

 

<script>							
$(function(){
	$('#SubmitSlide').on( 'click', function() {
		$.post('/post/shop/slide', function(json) {
					
			$('.bootbox').PhpappProgress({json:json});
		
			return true;
		
		}, 'json');
		
		
		bootbox.dialog({
		 message: '<div class="progress progress-striped active"><div style="width: 1%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" role="progressbar" class="progress-bar progress-bar-info"><span>0%</span></div></div>',
		 title: '<i class="icon fa fa-retweet"></i> 提交中',
		 closeButton: false
		}).PhpappProgress({time:2000});
		
		return false; 
	});
})
</script>
{template Public:Page:footer}